<?php

use think\facade\Route;

/** 试题难度 */
Route::group('/admin/question/difficult', function () {
    Route::get('list', 'index'); // 列表
    Route::get('create', 'create'); // 新增 - 页面
    Route::post('create', 'create'); // 新增 - 提交
    Route::group('<id>', function () {
        Route::get('edit', 'edit'); // 修改 - 页面
        Route::put('edit', 'edit'); // 修改 - 提交
        Route::delete('delete', 'delete'); // 删除
    })->pattern(['id' => '\d+']);
})->prefix('\app\exam\service\admin\QuestionDifficult@')->middleware(['adminRoute']);